]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Prefer using G_SOURCE_* constants instead of TRUE/FALSE
authorBilal Elmoussaoui <belmouss@redhat.com>
Tue, 14 Apr 2026 17:30:23 +0000 (19:30 +0200)
committerBilal Elmoussaoui <belmouss@redhat.com>
Tue, 14 Apr 2026 17:30:23 +0000 (19:30 +0200)
Makes the semantics clearer.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4176>

src/shell-global.c
src/shell-perf-log.c

index 1fbc0ddb5eca393f7a4580b4ebca08e7f0045b4f..97b46e5ccdad534b5dd02bb076362b68330b09d4 100644 (file)
@@ -1267,11 +1267,11 @@ run_leisure_functions (gpointer data)
 
   /* We started more work since we scheduled the idle */
   if (global->work_count > 0)
-    return FALSE;
+    return G_SOURCE_REMOVE;
 
   /* No leisure closures, so we are done */
   if (global->leisure_closures == NULL)
-    return FALSE;
+    return G_SOURCE_REMOVE;
 
   closures = global->leisure_closures;
   global->leisure_closures = NULL;
@@ -1289,7 +1289,7 @@ run_leisure_functions (gpointer data)
 
   g_slist_free (closures);
 
-  return FALSE;
+  return G_SOURCE_REMOVE;
 }
 
 static void
index b2c8591e8ac027d1d5efb804e1778c7862fc673c..1de97f4fb5dd92906c04a4b0a8aabfec27fe0a72 100644 (file)
@@ -190,7 +190,7 @@ statistics_timeout (gpointer data)
 
   shell_perf_log_collect_statistics (perf_log);
 
-  return TRUE;
+  return G_SOURCE_CONTINUE;
 }
 
 /**